export default async()=>{
  const [err,{encryptedData,rawData,iv,signature}] = await uni.getUserProfile({desc: "用于给用户提供更好服务"})
  // console.log({encryptedData,rawData,iv,signature})
  const [err1,{code}]= await uni.login({})
  // console.log(code)
  // 获取token要的参数 全部都有了
  const params = {encryptedData,rawData,iv,signature,code}
  const res = await uni.$u.http.post('/users/wxlogin', params)
  // console.log(res)
  return res.message.token
}